package org.travelfusion.xmlclient.ri.xobject.misc;

import java.io.Serializable;

import com.google.gwt.user.client.rpc.IsSerializable;

public class XBound implements Serializable, IsSerializable {
	
	private static final long serialVersionUID = 1L;
	
	private String operatorCode;
	
	private String operatorName;
	
	private String flightNo;
	
	private String departDate;
	
	private String arriveDate;

	/**
	 * Returns the operatorCode.
	 * @return the operatorCode.
	 */
	public String getOperatorCode() {
		return operatorCode;
	}

	/**
	 * Sets the operatorCode.
	 * @param operatorCode the operatorCode.
	 */
	public void setOperatorCode(String operatorCode) {
		this.operatorCode = operatorCode;
	}

	/**
	 * Returns the operatorName.
	 * @return the operatorName.
	 */
	public String getOperatorName() {
		return operatorName;
	}

	/**
	 * Sets the operatorName.
	 * @param operatorName the operatorName.
	 */
	public void setOperatorName(String operatorName) {
		this.operatorName = operatorName;
	}

	/**
	 * Returns the flightNo.
	 * @return the flightNo.
	 */
	public String getFlightNo() {
		return flightNo;
	}

	/**
	 * Sets the flightNo.
	 * @param flightNo the flightNo.
	 */
	public void setFlightNo(String flightNo) {
		this.flightNo = flightNo;
	}

	/**
	 * Returns the departDate.
	 * @return the departDate.
	 */
	public String getDepartDate() {
		return departDate;
	}

	/**
	 * Sets the departDate.
	 * @param departDate the departDate.
	 */
	public void setDepartDate(String departDate) {
		this.departDate = departDate;
	}

	/**
	 * Returns the arriveDate.
	 * @return the arriveDate.
	 */
	public String getArriveDate() {
		return arriveDate;
	}

	/**
	 * Sets the arriveDate.
	 * @param arriveDate the arriveDate.
	 */
	public void setArriveDate(String arriveDate) {
		this.arriveDate = arriveDate;
	}
	
	@Override
	public String toString() {
		return "(" + operatorCode + "-" + operatorName + "-" + flightNo 
		+ "-" + departDate + "-" + arriveDate + ")";
	}
	
}
